package com.csu.jpetstore_reconfiguration_back.service;

import com.csu.jpetstore_reconfiguration_back.common.CommonResponse;
import com.csu.jpetstore_reconfiguration_back.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 朱嘉辉
* @description 针对表【t_product】的数据库操作Service
* @createDate 2024-04-13 20:29:21
*/
public interface ProductService extends IService<Product> {
    CommonResponse<List<Product>> getAllProducts();
    CommonResponse<Product> getProduct(String id);
    CommonResponse<Product> addProduct(Product product);
    CommonResponse<Product> updateProduct(String id,Product product);
    CommonResponse<Product> deleteProduct(String id);
}
